<%-- 
    Document   : ingreso
    Created on : 03-ago-2014, 16:49:18
    Author     : Ovidio
--%>
<%@page import="java.sql.*"%>
<%@page import="recursos.conexion"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Bienvenido a nuestro registro virtual</title>
    </head>
    <body>
        <%
            String usu = request.getParameter("usu");
            String con1 = request.getParameter("con1");
            ResultSet datos = conexion.consultar("select usu,con1 from login where usu='" + usu + "' and con1 = '" + con1 + "'");
            if (datos.next()) {
                out.println("<form action='informacion.jsp'>");
                out.println("<input type='submit' value='Bienvenidos'>");
                out.println("</form>");
            } else {
                out.println("mal");
            }
        %>
    </body>
</html>
